kbuild, bpf: Fix BTF reproducibility
authorBen Hutchings <benh@debian.org>
Sun, 15 Sep 2024 23:54:24 +0000 (01:54 +0200)
committerSalvatore Bonaccorso <carnil@debian.org>
Sat, 21 Dec 2024 08:13:54 +0000 (09:13 +0100)
commitcbbc48ed7e5a08b43550e81cdf91617bd42d9658
tree0a4a01e7ad708b1f6bb0fcc2c6d619deb91a84d7
parent92a3c7296e7c9f03c62972b1f49414f8b0a11c02
kbuild, bpf: Fix BTF reproducibility

pahole 1.22 introduced the -j option for parallel processing, and
kbuild uses it, but this makes its output unreproducible.

pahole 1.27 introduced --btf_features=+reproducible_build which makes
the output reproducible even when -j is used.

Assume that if KBUILD_BUILD_TIMESTAMP is set then a reproducible build
is required, and use both options if available or neither if not.

Signed-off-by: Ben Hutchings <benh@debian.org>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name kbuild-bpf-fix-btf-reproducibility.patch
scripts/Makefile.btf